package com.xbongbong.pro.knowledge.base.pojo.dto;

import com.xbongbong.paas.toolbox.wrap.BaseDTO;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * @Author mingliang
 * @Description
 * @Date 2022/7/4 9:41
 **/
@Getter
@Setter
@ToString
public class LabelListDTO extends BaseDTO {
    private static final long serialVersionUID = 3528955007420505116L;

    /**
     * groupId
     */
    private Long groupId;
    /**
     * formID
     */
    @NotNull(message = "{dto.msg.formId.NotNull}")
    private Long formId;
    /**
     * appId
     */
    @NotNull(message = "{dto.msg.appId.NotNull}")
    private Long appId;
    /**
     * 是否是回收站
     */
    private Integer enable;
    /**
     * 已有的id
     */
    private List<Long> labelIds;
    /**
     * 标签名
     */
    private String nameLike;

    /**
     * 是否展示回收站的标签
     *     批量移标签需要展示出回收站中的标签
     */
    private Integer isReLabel;

    /**
     *  业务类型
     */
    private Integer businessType;

    /**
     *  业务数据ID
     */
    private Integer refId;



    public LabelListDTO(Long groupId, Long formId, Long appId, Integer enable, List<Long> labelIds, String nameLike) {
        this.groupId = groupId;
        this.formId = formId;
        this.appId = appId;
        this.enable = enable;
        this.labelIds = labelIds;
        this.nameLike = nameLike;
    }

    public LabelListDTO() {
    }
}
